package com.hqyj.javaGraduation.hotel.account.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hqyj.javaGraduation.hotel.account.pojo.AccountUserRole;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface AccountUserRoleMapper extends BaseMapper<AccountUserRole> {

    @Delete("delete from account_user_role where user_id = #{userId}")
    void deleteUserRoleByUserId(int userId);

    @Delete("delete from account_user_role where role_id = #{roleId}")
    void deleteUserRoleByRoleId(int roleId);


}
